package com.cqvie.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

@Entity
public class Attend {
	private String ID; // 考勤信息的编号
	private Date AttendDate; // 考勤的时间
	private String teacherID; // 教师ID
	private String course_teacher;// 教师姓名
	private String courseID; // 课程ID
	private String attend_course; // 课程名称
	private String courseTime; // 课程时间
	private int absenceNum; // 旷课总人数
	private int lateNumber; // 迟到总人数

	public int getAbsenceNum() {
		return absenceNum;
	}

	public String getAttend_course() {
		return attend_course;
	}

	@Temporal(TemporalType.DATE)
	public Date getAttendDate() {
		return AttendDate;
	}

	public String getCourse_teacher() {
		return course_teacher;
	}

	public String getCourseID() {
		return courseID;
	}

	public String getCourseTime() {
		return courseTime;
	}

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	public String getID() {
		return ID;
	}

	public int getLateNumber() {
		return lateNumber;
	}

	public String getTeacherID() {
		return teacherID;
	}

	public void setAbsenceNum(int absenceNum) {
		this.absenceNum = absenceNum;
	}

	public void setAttend_course(String attend_course) {
		this.attend_course = attend_course;
	}

	public void setAttendDate(Date attendDate) {
		AttendDate = attendDate;
	}

	public void setCourse_teacher(String course_teacher) {
		this.course_teacher = course_teacher;
	}

	public void setCourseID(String courseID) {
		this.courseID = courseID;
	}

	public void setCourseTime(String courseTime) {
		this.courseTime = courseTime;
	}

	public void setID(String iD) {
		ID = iD;
	}

	public void setLateNumber(int lateNumber) {
		this.lateNumber = lateNumber;
	}

	public void setTeacherID(String teacherID) {
		this.teacherID = teacherID;
	}

}
